package com.mspbots.cw.amqp.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Set;

/**
 * com.mspbots.cw.amqp.model.Users
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2020/4/20
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table("users")
public class User implements Serializable {

    @Id
    private Integer id;
    private Long tenantId;
    private Boolean enabled;
    private Set<String> authorities;
    private String username, email, firstName, lastName, managerUserId;
    private LocalDateTime createdTime, modifiedTime;

}
